#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys


class TMMSIK108(object):
    """
    DB2数据库   MPP
    Schema   MMSI
    """

    mat_no = None
    prod_shift_no = None
    prod_group_no = None
    prod_end_time = None
    mat_len_1 = None
    mat_wight_1 = None
    ws_side_cut_len1 = None
    ds_side_cut_len1 = None
    mat_len_2 = None
    mat_wight_2 = None
    ws_side_cut_len2 = None
    ds_side_cut_len2 = None
    mat_len_3 = None
    mat_wight_3 = None
    ws_side_cut_len3 = None
    ds_side_cut_len3 = None
    mat_len_4 = None
    mat_wight_4 = None
    ws_side_cut_len4 = None
    ds_side_cut_len4 = None
    mat_len_5 = None
    mat_wight_5 = None
    ws_side_cut_len5 = None
    ds_side_cut_len5 = None
    mat_len_6 = None
    mat_wight_6 = None
    ws_side_cut_len6 = None
    ds_side_cut_len6 = None
    mat_len_7 = None
    mat_wight_7 = None
    ws_side_cut_len7 = None
    ds_side_cut_len7 = None
    mat_len_8 = None
    mat_wight_8 = None
    ws_side_cut_len8 = None
    ds_side_cut_len8 = None

    def __init__(self, p_dic=None):
        self.mat_no = p_dic['mat_no']
        self.prod_shift_no = p_dic['prod_shift_no']
        self.prod_group_no = p_dic['prod_group_no']
        self.prod_end_time = p_dic['prod_end_time']
        self.mat_len_1 = p_dic['mat_len_1']
        self.mat_wight_1 = p_dic['mat_wight_1']
        self.ws_side_cut_len1 = p_dic['ws_side_cut_len1']
        self.ds_side_cut_len1 = p_dic['ds_side_cut_len1']
        self.mat_len_2 = p_dic['mat_len_2']
        self.mat_wight_2 = p_dic['mat_wight_2']
        self.ws_side_cut_len2 = p_dic['ws_side_cut_len2']
        self.ds_side_cut_len2 = p_dic['ds_side_cut_len2']
        self.mat_len_3 = p_dic['mat_len_3']
        self.mat_wight_3 = p_dic['mat_wight_3']
        self.ws_side_cut_len3 = p_dic['ws_side_cut_len3']
        self.ds_side_cut_len3 = p_dic['ds_side_cut_len3']
        self.mat_len_4 = p_dic['mat_len_4']
        self.mat_wight_4 = p_dic['mat_wight_4']
        self.ws_side_cut_len4 = p_dic['ws_side_cut_len4']
        self.ds_side_cut_len4 = p_dic['ds_side_cut_len4']
        self.mat_len_5 = p_dic['mat_len_5']
        self.mat_wight_5 = p_dic['mat_wight_5']
        self.ws_side_cut_len5 = p_dic['ws_side_cut_len5']
        self.ds_side_cut_len5 = p_dic['ds_side_cut_len5']
        self.mat_len_6 = p_dic['mat_len_6']
        self.mat_wight_6 = p_dic['mat_wight_6']
        self.ws_side_cut_len6 = p_dic['ws_side_cut_len6']
        self.ds_side_cut_len6 = p_dic['ds_side_cut_len6']
        self.mat_len_7 = p_dic['mat_len_7']
        self.mat_wight_7 = p_dic['mat_wight_7']
        self.ws_side_cut_len7 = p_dic['ws_side_cut_len7']
        self.ds_side_cut_len7 = p_dic['ds_side_cut_len7']
        self.mat_len_8 = p_dic['mat_len_8']
        self.mat_wight_8 = p_dic['mat_wight_8']
        self.ws_side_cut_len8 = p_dic['ws_side_cut_len8']
        self.ds_side_cut_len8 = p_dic['ds_side_cut_len8']
        pass

    def serialize(self) -> (dict):
        return self.__dict__
